package br.com.unioeste.bo;

import constantes.Aulas;

public class SemanaAula {

	private DiaAula[] diaDeAula;

	/**
	 * @return the diaDeAula
	 */
	public DiaAula[] getDiaDeAula() {
		return diaDeAula;
	}

	/**
	 * @param diaDeAula the diaDeAula to set
	 */
	public void setDiaDeAula(DiaAula[] diaDeAula) {
		this.diaDeAula = diaDeAula;
	}

	public SemanaAula() 
	{
		this.setDiaDeAula(new DiaAula[6]);
		
		for (int i = 0; i < diaDeAula.length; i++) 
		{
			diaDeAula[i] = new DiaAula();
		}
		
	}

	public void addAula(String curso, String serie, String[] str,boolean firstSemestre)
	{
		int horario = Aulas.horarioAula(str[0]);
		
		for (int i = 2; i < str.length; i++) 
		{
			if(horario != -1 && str[i].length() > 0)
			{
				this.getDiaDeAula()[i-2].getAulasDoDia()[horario] = new Aula(curso, serie, str[i],firstSemestre);
				System.out.println(this.getDiaDeAula()[i-2].getAulasDoDia()[horario]);
				
			}
		}
		
	}

}
